<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>热点加盟城市</title>
	</head>
	<body>
		<style type="text/css">
		.tr-thead th, .tr-thead th a{color:#FFFFFF;}
		</style>
		<dict:dict var="skoruTownTypeList" type="skoruTownType" />
		<table class="table-layout" style="line-height:20px;">
			<tr class="tr-thead" style="background-color:#1A315F;">
				<th style="width:40px;">
					<a href="javascript:void(0);" onclick="javascript:sort('id',this)">序号</a>
				</th>
				<th>
					<a href="javascript:void(0);" onclick="javascript:sort('provinceId',this)">省</a>
				</th>
				<th>
					<a href="javascript:void(0);" onclick="javascript:sort('cityId',this)">市</a>
				</th>
				<th>
					<a href="javascript:void(0);" onclick="javascript:sort('districtId',this)">区</a>
				</th>
				<th style="width:80px;">
					<a href="javascript:void(0);" onclick="javascript:sort('typeCode',this)">网络形态</a>
				</th>
				<th style="width:60px;">
					<a href="javascript:void(0);" onclick="javascript:sort('planAge',this)">计划年份</a>
				</th>
			</tr>
			<logic-el:iterate name="page" property="result" id="town" indexId="index">
				<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
					<td>
						<c:out value="${index + 1}" />
						&nbsp;
					</td>
					<td>
						<logic:iterate id="prov" name="provinces">
							<c:if test="${prov.code == town.provinceId}">
								<c:out value="${prov.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<logic:iterate id="city" name="cities">
							<c:if test="${city.code == town.cityId}">
								<c:out value="${city.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<logic:iterate id="dist" name="districts">
							<c:if test="${dist.code == town.districtId}">
								<c:out value="${dist.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<logic:iterate id="t" name="skoruTownTypeList">
							<c:if test="${t.code == town.typeCode}">
								<c:out value="${t.dictName}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<c:out value="${town.planAge}" />
						&nbsp;
					</td>
				</tr>
			</logic-el:iterate>
		</table>
		<page:page name="page" />
	</body>
</html>
